/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.p2psimulator.entity.protocol.messages.chord.storm;

import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

/**
 *
 * @author Amorim
 */
public class FindWitness extends Message{


    private Id referredId;
    
    public FindWitness(Id origin, Id destination, int transactionId, BehaviorTypes originBehavior) {
        super(origin, destination, transactionId, originBehavior);
    }

    @Override
    public MessageTypes getMessageType() {
        return MessageTypes.STORM_FINDWITNESS;
    }

    @Override
    public String getName() {
        return MessageTypes.STORM_FINDWITNESS.getName();
    }

    public Id getRefferedId() {
        return referredId;
    }

    public void setReferredId(Id referredId) {
        this.referredId = referredId;
    }
}

